package com.easyctba.core.domain.bo;

import com.easyctba.common.core.validate.AddGroup;
import com.easyctba.common.core.validate.EditGroup;
import com.easyctba.core.domain.CtbaFiasClass;
import com.easyctba.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * fias分类业务对象 ctba_fias_class
 *
 * @author Huang
 * @date 2024-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CtbaFiasClass.class, reverseConvertGenerate = false)
public class CtbaFiasClassBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 大类id
     */
    @NotNull(message = "大类id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 分类编号
     */
    @NotBlank(message = "分类编号不能为空", groups = {  AddGroup.class, EditGroup.class })
    private String classNum;

    /**
     * 分类名
     */
    @NotBlank(message = "分类名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String className;


}
